package com.haima.agentpartner;

public class HaimaMiddlewareBean {
    String methodName;
    String callingName;
    DeviceInfo info;
    boolean isInputMethodEnable = true;
    String targetPkgName;
    TenantLoginInfo tenantLoginInfo;
    String cmdStringKey;
    /**
     * 中间件携带的请求参数，以json字符串或者字符串的格式传递过来，这样后续新的业务方法就无需再添加新的字段
     * 若请求参数只有一个字符串，则直接放在data字段，若请求参数包含多个，则以json字符串格式放在data字段
     */
    String data;
    HaimaSockRequest hs = new HaimaSockRequest();

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getCallingName() {
        return callingName;
    }

    public void setCallingName(String callingName) {
        this.callingName = callingName;
    }

    public DeviceInfo getInfo() {
        return info;
    }

    public void setInfo(DeviceInfo info) {
        this.info = info;
    }

    public boolean isInputMethodEnable() {
        return isInputMethodEnable;
    }

    public void setInputMethodEnable(boolean inputMethodEnable) {
        isInputMethodEnable = inputMethodEnable;
    }

    public String getTargetPkgName() {
        return targetPkgName;
    }

    public void setTargetPkgName(String targetPkgName) {
        this.targetPkgName = targetPkgName;
    }

    public TenantLoginInfo getTenantLoginInfo() {
        return tenantLoginInfo;
    }

    public void setTenantLoginInfo(TenantLoginInfo tenantLoginInfo) {
        this.tenantLoginInfo = tenantLoginInfo;
    }

    public String getCmdStringKey() {
        return cmdStringKey;
    }

    public void setCmdStringKey(String cmdStringKey) {
        this.cmdStringKey = cmdStringKey;
    }
    public HaimaSockRequest getHs() {
        return hs;
    }

    public void setHs(HaimaSockRequest hs) {
        this.hs = hs;
    }

    @Override
    public String toString() {
        return "HaimaMiddlewareBean{" +
                "methodName='" + methodName + '\'' +
                ", callingName='" + callingName + '\'' +
                ", info=" + info +
                ", isInputMethodEnable=" + isInputMethodEnable +
                ", targetPkgName='" + targetPkgName + '\'' +
                ", tenantLoginInfo=" + tenantLoginInfo +
                ", cmdStringKey='" + cmdStringKey + '\'' +
                ", data='" + data + '\'' +
                ", hs=" + hs +
                '}';
    }
}
